package git.determinal.template.view;



public enum StatusCode {
    SUCCESS(200, "操作成功!"),
    ERROR(500, "服务异常"),
    UNKOWN_ERROR(501, "未知错误"),
    PARAMETER_EMPTY(210, "参数为空"),
    PARAMETER_INVALID(211, "参数错误"),
    ARITHMETIC_ERROR(212, "计算错误"),
    FORBIDDEN(403, "拒绝访问");

    private int code;
    private String message;

    private StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}




